package io.geekidea.boot.chargeback.dto;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;
@Data
public class AddChargeBack implements Serializable {
    @Serial
    private static final long serialVersionUID = 432963485024615394L;
    @Schema(description = "退单号")
    @TableField("numbers")
    private String numbers;

    @Schema(description = "订单号")
    @TableField("orderId")
    private String orderId;

    @Schema(description = "订单类型")
    @TableField("order_types")
    private String orderTypes;

    @Schema(description = "订单金额")
    @TableField("order_amount")
    private Double orderAmount;

    @Schema(description = "退款金额")
    @TableField("refundAmount")
    private Double refundAmount;

    @Schema(description = "退款状态")
    @TableField("refund_status")
    private Boolean refundStatus;

    @Schema(description = "战区id")
    @TableField("areaId")
    private Integer areaId;

    @Schema(description = "门店id")
    @TableField("storeId")
    private Integer storeId;

    @Schema(description = "审核状态")
    @TableField("audit_status")
    private Boolean auditStatus;

    @Schema(description = "制单人")
    @TableField("prepared_by")
    private String preparedBy;

    @Schema(description = "审核人")
    @TableField("auditor")
    private String auditor;

    @Schema(description = "制单时间")
    @TableField("createdTime")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8", shape = JsonFormat.Shape.STRING)
    private LocalDateTime createdTime;


    @Schema(description = "审核时间")
    @TableField("updatedTime")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8", shape = JsonFormat.Shape.STRING)
    private LocalDateTime updatedTime;

    @Schema(description = "退款原因")
    @TableField("reasons_for_refund")
    private String reasonsForRefund;


    @Schema(description = "逻辑删除")
    @TableField("deleted")
    private String deleted;

    @Schema(description = "创建人")
    @TableField("updatedBy")
    private String createdBy;

    @Schema(description = "修改人")
    @TableField("updatedBy")
    private String updatedBy;

    @Schema(description = "支付方式")
    @TableField("mode_of_payment")
    private String modeOfPayment;

    @TableField(exist = false)
    private String areaName;

    @TableField(exist = false)
    private String storeName;
}
